package cn.jly.spring.boot.cloud.beans.inheritance.joined;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * @author lanyangji
 * @description
 * @date 2020/12/10 下午 2:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Entity
@PrimaryKeyJoinColumn(name = "book_id", referencedColumnName = "id")
public class RedFruit extends Fruit {
    private String redMark;
}
